/*
 * @Author: pengtianrui 2276608413@qq.com
 * @Date: 2024-08-26 17:01:02
 * @LastEditors: pengtianrui 2276608413@qq.com
 * @LastEditTime: 2024-08-26 17:21:02
 * @FilePath: \SGFEM\DataStructure\FEM\Load\src\PLOAD2Data.cpp
 */
#include "DataStructure/Input/Load/PLOAD2Data.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure;

bool SG::DataStructure::FEM::operator== (const PLOAD2Data& a, const PLOAD2Data& b)
{
    if (a.m_sId != b.m_sId)
    {
        return false;
    }
    if (a.m_eId != b.m_eId)
    {
        return false;
    }

    if (!SG::DataStructure::Common::isNear (a.m_P, b.m_P))
    {
        return false;
    }

    if (a.m_domainId != b.m_domainId)
    {
        return false;
    }
    return true;
}